2
תגובות
מערבולת ל md5
פתח
משתמש_73338
,
עבדתי קשה כדי ליצור מערבולת מיוחד לmd5 בשביל האתר שלי.
השאלה שאני לא יודע עם זה באמת יכול להקשות על פיצות הסיסמאות.
ואם זה נחוץ בכלל?
זה הקוד:
זה פונקציית הצפנה חד כיוונית שלפי התוצאה אי אפשר לשחזר את המקור, בגלל זה גם לא ברור בשביל מה כל הסיפור הזה, אם מימלא אי אפשר ללכת אחורה. וודקה לשחזר אחורנית את פעולות הפונקציה שלך אפשר בקלות.
ואגב, str_replace יודעת לקבל בתור פרמטר גם מערך.
השאלה שאני לא יודע עם זה באמת יכול להקשות על פיצות הסיסמאות.
ואם זה נחוץ בכלל?
זה הקוד:
function rh1($text){
$text = md5($text);
$text = str_replace('11','64',$text);
$text = str_replace('22','68',$text);
$text = str_replace(' ','0',$text);
$text = str_replace('.','pic',$text);
$text = str_replace('\\','slass',$text);
$text = str_replace('<','chat',$text);
$text = str_replace('>','tav',$text);
$text = str_replace('-','sdjk',$text);
$text = str_replace('_','line',$text);
$text = str_replace('`','oo4o',$text);
$text = str_replace('~','whkfjh',$text);
$text = str_replace('1','2r67',$text);
$text = str_replace('2','948c',$text);
$text = str_replace('3','54d4',$text);
$text = str_replace('4','8d37',$text);
$text = str_replace(' ','0',$text);
$text = str_replace('5','243',$text);
$text = str_replace('6','1s11',$text);
$text = str_replace('7','uty9',$text);
$text = str_replace('8','sf5',$text);
$text = str_replace('9','mb5',$text);
$text = str_replace('0','465d',$text);
$text = str_replace('a','c1',$text);
$text = str_replace('b','d2',$text);
$text = str_replace('c','e3',$text);
$text = str_replace('d','f4',$text);
$text = str_replace('e','g5',$text);
$text = str_replace('f','h6',$text);
$text = str_replace('g','i7',$text);
$text = str_replace('h','j8',$text);
$text = str_replace('i','k9',$text);
$text = str_replace('j','l10',$text);
$text = str_replace('k','m11',$text);
$text = str_replace('l','n12',$text);
$text = str_replace('m','013',$text);
$text = str_replace('n','p14',$text);
$text = str_replace('o','q15',$text);
$text = str_replace('p','r16',$text);
$text = str_replace('q','s17',$text);
$text = str_replace('r','t18',$text);
$text = str_replace('s','u19',$text);
$text = str_replace('t','v20',$text);
$text = str_replace('u','w21',$text);
$text = str_replace('v','x22',$text);
$text = str_replace('w','y23',$text);
$text = str_replace('x','z24',$text);
$text = str_replace('y','a25',$text);
$text = str_replace('z','b26',$text);
$text = str_replace('.','pic',$text);
$text = str_replace('\\','slass',$text);
$text = str_replace('<','chat',$text);
$text = str_replace('>','tav',$text);
$text = str_replace('-','sdjk',$text);
$text = str_replace('_','line',$text);
$text = str_replace('`','oo4o',$text);
$text = str_replace('~','whkfjh',$text);
$text = str_replace('1','2r67',$text);
$text = str_replace('2','948c',$text);
$text = str_replace('3','54d4',$text);
$text = str_replace('4','8d37',$text);
$text = str_replace('5','243',$text);
$text = str_replace('6','1s11',$text);
$text = str_replace('7','uty9',$text);
$text = str_replace('8','sf5',$text);
$text = str_replace('9','mb5',$text);
$text = str_replace('0','465d',$text);
$text = str_replace('a','c1',$text);
$text = str_replace('b','d2',$text);
$text = str_replace('c','e3',$text);
$text = str_replace('d','f4',$text);
$text = str_replace('e','g5',$text);
$text = str_replace('f','h6',$text);
$text = str_replace('g','i7',$text);
$text = str_replace('h','j8',$text);
$text = str_replace('i','k9',$text);
$text = str_replace('j','l10',$text);
$text = str_replace('k','m11',$text);
$text = str_replace('l','n12',$text);
$text = str_replace('m','013',$text);
$text = str_replace('n','p14',$text);
$text = str_replace('o','q15',$text);
$text = str_replace('p','r16',$text);
$text = str_replace('q','s17',$text);
$text = str_replace('r','t18',$text);
$text = str_replace('s','u19',$text);
$text = str_replace('t','v20',$text);
$text = str_replace('u','w21',$text);
$text = str_replace('v','x22',$text);
$text = str_replace('w','y23',$text);
$text = str_replace('x','z24',$text);
$text = str_replace('y','a25',$text);
$text = str_replace('z','b26',$text);
$text = str_replace('11','6',$text);
$text = str_replace('22','1',$text);
$text = str_replace('33','9',$text);
$text = str_replace('44','7',$text);
$text = str_replace('55','5',$text);
$text = str_replace('66','3',$text);
$text = str_replace('77','8',$text);
$text = str_replace('88','2',$text);
$text = str_replace('99','4',$text);
$text = str_replace('00','0',$text);
$text = str_replace('12','2',$text);
$text = str_replace('13','3',$text);
$text = str_replace('14','4',$text);
$text = str_replace('15','5',$text);
$text = str_replace('16','6',$text);
$text = str_replace('17','7',$text);
$text = str_replace('18','8',$text);
$text = str_replace('19','9',$text);
$text = str_replace('19','9',$text);
$text = str_replace('11','6',$text);
$text = str_replace('22','1',$text);
$text = str_replace('33','9',$text);
$text = str_replace('44','7',$text);
$text = str_replace('zz','2',$text);
$text = str_replace('z6','6',$text);
$text = str_replace('z','8',$text);
$text = str_replace('55','5',$text);
$text = str_replace('66','3',$text);
$text = str_replace('77','8',$text);
$text = str_replace('88','2',$text);
$text = str_replace('99','4',$text);
$text = str_replace('00','0',$text);
$text = str_replace('b1','n',$text);
$text = str_replace('b2','z',$text);
$text = str_replace('z','8',$text);
$text = str_replace('a','5',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('12','3',$text);
$text = str_replace('13','4',$text);
$text = str_replace('14','5',$text);
$text = str_replace('15','6',$text);
$text = str_replace('16','7',$text);
$text = str_replace('17','8',$text);
$text = str_replace('18','9',$text);
$text = str_replace('19','10',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('12','3',$text);
$text = str_replace('13','4',$text);
$text = str_replace('14','5',$text);
$text = str_replace('15','6',$text);
$text = str_replace('16','7',$text);
$text = str_replace('17','8',$text);
$text = str_replace('18','9',$text);
$text = str_replace('19','10',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('12','3',$text);
$text = str_replace('13','4',$text);
$text = str_replace('14','5',$text);
$text = str_replace('15','6',$text);
$text = str_replace('16','7',$text);
$text = str_replace('17','8',$text);
$text = str_replace('18','9',$text);
$text = str_replace('19','10',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('12','3',$text);
$text = str_replace('13','4',$text);
$text = str_replace('14','5',$text);
$text = str_replace('15','6',$text);
$text = str_replace('16','7',$text);
$text = str_replace('17','8',$text);
$text = str_replace('18','9',$text);
$text = str_replace('19','10',$text);
$text = str_replace('20','2',$text);
$text = str_replace('21','3',$text);
$text = str_replace('22','4',$text);
$text = str_replace('23','5',$text);
$text = str_replace('24','6',$text);
$text = str_replace('25','7',$text);
$text = str_replace('26','8',$text);
$text = str_replace('27','9',$text);
$text = str_replace('28','10',$text);
$text = str_replace('29','11',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('1','2r67',$text);
$text = str_replace('2','948c',$text);
$text = str_replace('3','54d4',$text);
$text = str_replace('4','8d37',$text);
$text = str_replace('5','243',$text);
$text = str_replace('6','1s11',$text);
$text = str_replace('7','uty9',$text);
$text = str_replace('8','sf5',$text);
$text = str_replace('9','mb5',$text);
$text = str_replace('0','465d',$text);
$text = str_replace('a','c1',$text);
$text = str_replace('b','d2',$text);
$text = str_replace('c','e3',$text);
$text = str_replace('d','f4',$text);
$text = str_replace('e','g5',$text);
$text = str_replace('f','h6',$text);
$text = str_replace('g','i7',$text);
$text = str_replace< div="">
$text = md5($text);
$text = str_replace('11','64',$text);
$text = str_replace('22','68',$text);
$text = str_replace(' ','0',$text);
$text = str_replace('.','pic',$text);
$text = str_replace('\\','slass',$text);
$text = str_replace('<','chat',$text);
$text = str_replace('>','tav',$text);
$text = str_replace('-','sdjk',$text);
$text = str_replace('_','line',$text);
$text = str_replace('`','oo4o',$text);
$text = str_replace('~','whkfjh',$text);
$text = str_replace('1','2r67',$text);
$text = str_replace('2','948c',$text);
$text = str_replace('3','54d4',$text);
$text = str_replace('4','8d37',$text);
$text = str_replace(' ','0',$text);
$text = str_replace('5','243',$text);
$text = str_replace('6','1s11',$text);
$text = str_replace('7','uty9',$text);
$text = str_replace('8','sf5',$text);
$text = str_replace('9','mb5',$text);
$text = str_replace('0','465d',$text);
$text = str_replace('a','c1',$text);
$text = str_replace('b','d2',$text);
$text = str_replace('c','e3',$text);
$text = str_replace('d','f4',$text);
$text = str_replace('e','g5',$text);
$text = str_replace('f','h6',$text);
$text = str_replace('g','i7',$text);
$text = str_replace('h','j8',$text);
$text = str_replace('i','k9',$text);
$text = str_replace('j','l10',$text);
$text = str_replace('k','m11',$text);
$text = str_replace('l','n12',$text);
$text = str_replace('m','013',$text);
$text = str_replace('n','p14',$text);
$text = str_replace('o','q15',$text);
$text = str_replace('p','r16',$text);
$text = str_replace('q','s17',$text);
$text = str_replace('r','t18',$text);
$text = str_replace('s','u19',$text);
$text = str_replace('t','v20',$text);
$text = str_replace('u','w21',$text);
$text = str_replace('v','x22',$text);
$text = str_replace('w','y23',$text);
$text = str_replace('x','z24',$text);
$text = str_replace('y','a25',$text);
$text = str_replace('z','b26',$text);
$text = str_replace('.','pic',$text);
$text = str_replace('\\','slass',$text);
$text = str_replace('<','chat',$text);
$text = str_replace('>','tav',$text);
$text = str_replace('-','sdjk',$text);
$text = str_replace('_','line',$text);
$text = str_replace('`','oo4o',$text);
$text = str_replace('~','whkfjh',$text);
$text = str_replace('1','2r67',$text);
$text = str_replace('2','948c',$text);
$text = str_replace('3','54d4',$text);
$text = str_replace('4','8d37',$text);
$text = str_replace('5','243',$text);
$text = str_replace('6','1s11',$text);
$text = str_replace('7','uty9',$text);
$text = str_replace('8','sf5',$text);
$text = str_replace('9','mb5',$text);
$text = str_replace('0','465d',$text);
$text = str_replace('a','c1',$text);
$text = str_replace('b','d2',$text);
$text = str_replace('c','e3',$text);
$text = str_replace('d','f4',$text);
$text = str_replace('e','g5',$text);
$text = str_replace('f','h6',$text);
$text = str_replace('g','i7',$text);
$text = str_replace('h','j8',$text);
$text = str_replace('i','k9',$text);
$text = str_replace('j','l10',$text);
$text = str_replace('k','m11',$text);
$text = str_replace('l','n12',$text);
$text = str_replace('m','013',$text);
$text = str_replace('n','p14',$text);
$text = str_replace('o','q15',$text);
$text = str_replace('p','r16',$text);
$text = str_replace('q','s17',$text);
$text = str_replace('r','t18',$text);
$text = str_replace('s','u19',$text);
$text = str_replace('t','v20',$text);
$text = str_replace('u','w21',$text);
$text = str_replace('v','x22',$text);
$text = str_replace('w','y23',$text);
$text = str_replace('x','z24',$text);
$text = str_replace('y','a25',$text);
$text = str_replace('z','b26',$text);
$text = str_replace('11','6',$text);
$text = str_replace('22','1',$text);
$text = str_replace('33','9',$text);
$text = str_replace('44','7',$text);
$text = str_replace('55','5',$text);
$text = str_replace('66','3',$text);
$text = str_replace('77','8',$text);
$text = str_replace('88','2',$text);
$text = str_replace('99','4',$text);
$text = str_replace('00','0',$text);
$text = str_replace('12','2',$text);
$text = str_replace('13','3',$text);
$text = str_replace('14','4',$text);
$text = str_replace('15','5',$text);
$text = str_replace('16','6',$text);
$text = str_replace('17','7',$text);
$text = str_replace('18','8',$text);
$text = str_replace('19','9',$text);
$text = str_replace('19','9',$text);
$text = str_replace('11','6',$text);
$text = str_replace('22','1',$text);
$text = str_replace('33','9',$text);
$text = str_replace('44','7',$text);
$text = str_replace('zz','2',$text);
$text = str_replace('z6','6',$text);
$text = str_replace('z','8',$text);
$text = str_replace('55','5',$text);
$text = str_replace('66','3',$text);
$text = str_replace('77','8',$text);
$text = str_replace('88','2',$text);
$text = str_replace('99','4',$text);
$text = str_replace('00','0',$text);
$text = str_replace('b1','n',$text);
$text = str_replace('b2','z',$text);
$text = str_replace('z','8',$text);
$text = str_replace('a','5',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('12','3',$text);
$text = str_replace('13','4',$text);
$text = str_replace('14','5',$text);
$text = str_replace('15','6',$text);
$text = str_replace('16','7',$text);
$text = str_replace('17','8',$text);
$text = str_replace('18','9',$text);
$text = str_replace('19','10',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('12','3',$text);
$text = str_replace('13','4',$text);
$text = str_replace('14','5',$text);
$text = str_replace('15','6',$text);
$text = str_replace('16','7',$text);
$text = str_replace('17','8',$text);
$text = str_replace('18','9',$text);
$text = str_replace('19','10',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('12','3',$text);
$text = str_replace('13','4',$text);
$text = str_replace('14','5',$text);
$text = str_replace('15','6',$text);
$text = str_replace('16','7',$text);
$text = str_replace('17','8',$text);
$text = str_replace('18','9',$text);
$text = str_replace('19','10',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('12','3',$text);
$text = str_replace('13','4',$text);
$text = str_replace('14','5',$text);
$text = str_replace('15','6',$text);
$text = str_replace('16','7',$text);
$text = str_replace('17','8',$text);
$text = str_replace('18','9',$text);
$text = str_replace('19','10',$text);
$text = str_replace('20','2',$text);
$text = str_replace('21','3',$text);
$text = str_replace('22','4',$text);
$text = str_replace('23','5',$text);
$text = str_replace('24','6',$text);
$text = str_replace('25','7',$text);
$text = str_replace('26','8',$text);
$text = str_replace('27','9',$text);
$text = str_replace('28','10',$text);
$text = str_replace('29','11',$text);
$text = str_replace('10','1',$text);
$text = str_replace('11','2',$text);
$text = str_replace('1','2r67',$text);
$text = str_replace('2','948c',$text);
$text = str_replace('3','54d4',$text);
$text = str_replace('4','8d37',$text);
$text = str_replace('5','243',$text);
$text = str_replace('6','1s11',$text);
$text = str_replace('7','uty9',$text);
$text = str_replace('8','sf5',$text);
$text = str_replace('9','mb5',$text);
$text = str_replace('0','465d',$text);
$text = str_replace('a','c1',$text);
$text = str_replace('b','d2',$text);
$text = str_replace('c','e3',$text);
$text = str_replace('d','f4',$text);
$text = str_replace('e','g5',$text);
$text = str_replace('f','h6',$text);
$text = str_replace('g','i7',$text);
$text = str_replace< div="">
2 תשובות
ענה
PHPDeveloper
ב
08 לינואר 2012
#
רעיון נחמד אך למה לא השתמשת בלולאה?
אני לא ממש יודע עד כמה זה אפקטיבי אבל הרעיון עצמו ניראה מוצלח..
אני לא כל כך רואה בשביל מה כל זה.
תשתמש במנגנון הצפנה יותר טוב מובנה וזהו, למשל
echo hash('sha512', 'blablabla');
זה פונקציית הצפנה חד כיוונית שלפי התוצאה אי אפשר לשחזר את המקור, בגלל זה גם לא ברור בשביל מה כל הסיפור הזה, אם מימלא אי אפשר ללכת אחורה. וודקה לשחזר אחורנית את פעולות הפונקציה שלך אפשר בקלות.
ואגב, str_replace יודעת לקבל בתור פרמטר גם מערך.